/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.card.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import top.continew.starter.extension.crud.model.entity.BaseDO;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 微信名片访问记录实体
 *
 * @author floyd
 * @since 2024/12/02 15:48
 */
@Data
@TableName("bsc_business_card_visitor_record")
public class BusinessCardVisitorRecordDO extends BaseDO {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 微信名片ID
     */
    private Long cardId;

    /**
     * 微信openId
     */
    private String openId;

    /**
     * 访问时间
     */
    private LocalDateTime visitorTime;

    /**
     * 停留时间（秒）
     */
    private Integer duration;

    /**
     * 访问者IP地址
     */
    private String ipAddress;

    /**
     * 设备类型
     */
    private String deviceType;

    /**
     * 操作系统
     */
    private String operatingSystem;

    /**
     * 操作类型（如：click、scroll等）
     */
    private String actions;

    /**
     * 描述
     */
    private String description;
}